package com.example.zjsr.dao.platform;

import com.example.zjsr.domain.Admin.platform.Platform;
import org.apache.ibatis.annotations.Mapper;

import java.util.List;

/**
 * @author lvyongwei
 */
@Mapper
public interface PlatformMapper {

    /**
     * 添加平台信息
     * @param platform
     * @return
     */
    public boolean insertPlatform(Platform platform);

    /**
     * 修改平台信息
     * @param platform
     * @return
     */
    public boolean updatePlatform(Platform platform);

    /**
     * 根据平台id查询信息
     * @param platformId
     * @return
     */
    public Platform getPlatformById(Integer platformId);

    /**
     * 获取所有平台信息
     * @return
     */
    public List<Platform> getPlatforms();
}
